<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link type="text/css" rel="stylesheet" th:href="@{/css/main.css}" />
</head>
<body class="goodsBody">
<div class="tohome">
    <a th:href="@{'/wujin/list'}">回到主页</a>
</div>
<form action="/assist/formscrew" th:action="@{/assist/formscrew}" method="POST">

    商品ID：
    <input type="text" name="goods_id" th:value="${screwModel.goods_id}" readonly="readonly">
    <br>
    螺丝名称：
    <input type="text" name="screw_name" placeholder="请录入螺丝名称" >
    <br>

    <input type="submit" value="提交" >
</form>

<br>
<br>
<br>

<table border="1">
    <thead>
    <tr>
        <td>商品ID</td>
        <td>螺丝ID</td>
        <td>螺丝名称</td>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${screwModel.screwList.size()} eq 0">
        <td colspan="3">没有商品螺丝信息！</td>
    </tr>
    <tr th:each="screw:${screwModel.screwList}">
        <td th:text="${screw.goods_id}"></td>
        <td th:text="${screw.screw_id}"></td>
        <td th:text="${screw.screw_name}"></td>

        <td >
            <a th:href="@{'/assist/deletescrew?screw_id='+${screw.screw_id}+'&goods_id='+${screw.goods_id}}">删除</a>

        </td>
    </tr>
    </tbody>
</table>

</body>
</html>